package com.baiyang.app.ui.classification;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.alibaba.fastjson.JSONObject;

public class ItemTypeViewModel extends ViewModel {

    private MutableLiveData<JSONObject> article;

    public ItemTypeViewModel(){
        article = new MutableLiveData<>();
    }

    public void setArticle(JSONObject result){
        this.article.postValue(result);
    }

    public LiveData<JSONObject> getArticle(){
        return article;
    }
}
